﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CutterTool
{
    public class cutterData : IComparable<cutterData>
    {
        public int id;
        public string text;
        public string cutter;

        public cutterData(string text, string cutter)
        {
            this.id = 0;
            this.text = text;
            this.cutter = cutter;
        }

        public cutterData(int id, string text, string cutter)
        {
            this.id = id;
            this.text = text;
            this.cutter = cutter;
        }

        public int CompareTo(cutterData cu2)
        {
            if (cu2 != null)
            {
                return (this.text.CompareTo(cu2.text));
            }
            else
            {
                throw new ArgumentException("Data can not be null");
            }
        }
    }
}
